package marking.liu.pojo.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.checkerframework.checker.units.qual.K;
import org.joda.time.DateTime;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "股票大盘信息数据", description = "InnerMarketDomain")
public class InnerMarketDomain {
    @ApiModelProperty(value = "大盘编码")
    private String code;
    @ApiModelProperty(value = "指数名称")
    private String name;
    @ApiModelProperty(value = "开盘点")
    private BigDecimal openPoint;
    @ApiModelProperty(value = "当前点")
    private BigDecimal curPoint;
    @ApiModelProperty(value = "前收盘点")
    private BigDecimal preClosePoint;
    @ApiModelProperty(value = "交易量")
    private Long tradeAmt;
    @ApiModelProperty(value = "交易金额")
    private BigDecimal tradeVol;
    @ApiModelProperty(value = "涨跌值")
    private BigDecimal upDown;
    @ApiModelProperty(value = "涨幅")
    private BigDecimal rose;
    @ApiModelProperty(value = "振幅")
    private BigDecimal amplitude;
    @ApiModelProperty(value = "当前时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private DateTime curTime;
}
